package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusDeviceCropperMapper;
import com.ruoyi.business.domain.BusDeviceCropper;
import com.ruoyi.business.service.IBusDeviceCropperService;

/**
 * 农作物种植Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-22
 */
@Service
public class BusDeviceCropperServiceImpl implements IBusDeviceCropperService 
{
    @Autowired
    private BusDeviceCropperMapper busDeviceCropperMapper;

    /**
     * 查询农作物种植
     * 
     * @param id 农作物种植主键
     * @return 农作物种植
     */
    @Override
    public BusDeviceCropper selectBusDeviceCropperById(Long id)
    {
        return busDeviceCropperMapper.selectBusDeviceCropperById(id);
    }

    /**
     * 查询农作物种植列表
     * 
     * @param busDeviceCropper 农作物种植
     * @return 农作物种植
     */
    @Override
    public List<BusDeviceCropper> selectBusDeviceCropperList(BusDeviceCropper busDeviceCropper)
    {
        return busDeviceCropperMapper.selectBusDeviceCropperList(busDeviceCropper);
    }

    /**
     * 新增农作物种植
     * 
     * @param busDeviceCropper 农作物种植
     * @return 结果
     */
    @Override
    public int insertBusDeviceCropper(BusDeviceCropper busDeviceCropper)
    {
        return busDeviceCropperMapper.insertBusDeviceCropper(busDeviceCropper);
    }

    /**
     * 修改农作物种植
     * 
     * @param busDeviceCropper 农作物种植
     * @return 结果
     */
    @Override
    public int updateBusDeviceCropper(BusDeviceCropper busDeviceCropper)
    {
        return busDeviceCropperMapper.updateBusDeviceCropper(busDeviceCropper);
    }

    /**
     * 批量删除农作物种植
     * 
     * @param ids 需要删除的农作物种植主键
     * @return 结果
     */
    @Override
    public int deleteBusDeviceCropperByIds(Long[] ids)
    {
        return busDeviceCropperMapper.deleteBusDeviceCropperByIds(ids);
    }

    /**
     * 删除农作物种植信息
     * 
     * @param id 农作物种植主键
     * @return 结果
     */
    @Override
    public int deleteBusDeviceCropperById(Long id)
    {
        return busDeviceCropperMapper.deleteBusDeviceCropperById(id);
    }
}
